<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Date对象</title>
</head>
<body>
<script>
    var nowDate=new Date();
    console.log(nowDate)
    var fullYear = nowDate.getFullYear();
    var month = nowDate.getMonth();
    var day = nowDate.getDay()//周几、
    var date = nowDate.getDate();//天数
    var hours = nowDate.getHours();
    var minutes = nowDate.getMinutes();
    var seconds = nowDate.getSeconds();
    var milliseconds = nowDate.getMilliseconds();
    console.log(fullYear+"-"+month+"-"+date+"-"+day+"-"+hours+"-"+minutes+"-"+seconds+"-"+milliseconds)

    var arr=new Array(1,2,3,4,6);
    console.log(Math.max(...arr));
</script>
</body>
</html>